#pragma once
#include "Light.h"
POCELAIN_NAMESPACE_BEGIN
class DirectionalLight : public Light
{
public:
    typedef DirectionalLight type;
    DirectionalLight(Real intensity = Real(1.0), Color color = Color(1.0,1.0,1.0));
    virtual ~DirectionalLight();
    virtual EObjectClass getObjectClass() const override {return EObjectClass::E_DIRECTIONAL_LIGHT;}
    void setTarget(Node3D *target);
    Node3D *getTarget()const{return mTarget;}
protected:
    Node3D *mTarget = new Node3D;
    //DirectionLigthShadow *mShadow;
};
POCELAIN_NAMESPACE_END
